package io.renren.modules.diycake.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author mohan
 * @email 1358665425@qq.com
 * @date 2022-01-09 16:40:25
 */
@Data
@TableName("diy_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单id
	 */
	@TableId
	private Long id;
	/**
	 * 订单编号
	 */
	private String orderName;
	/**
	 * 订单数量
	 */
	private Integer num;
	/**
	 * 排序字段
	 */
	private Long sort;
	/**
	 * 蛋糕价钱
	 */
	private Double price;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 商家id
	 */
	private Long shopId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

}
